{% load state_display %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="../../static/personal_center/font_2369197_oqktwkt71s/iconfont.css" media="screen">
    <link rel="stylesheet" href="../../static/public_file/css/DepartmentSelection.css">
    <title>Title</title>
    <style>
        body, html {
            padding: 0px;margin: 0px;width: 100%;height: 100%;
        }
        .input-style {
            display: inline-block;width: 100%;height: 35px;font-size: 14px;border: none;background: white;
        }
        table {
            border-collapse: collapse;border-spacing: 0;
        }
        tr {
            height: 35px;
        }
        th {
            text-align: center;
        }
        td {
            padding-right: 0.5%;
        }
        .top_tag {
            border-bottom: #01AAED solid 2px;color: #01AAED;
        }
        .tab_top {
            width: 100px;height: 40px;line-height: 40px;text-align: center;display: inline-block;cursor: pointer;
        }
        .a_tag_cla{
            display: block;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;height: 30px;line-height: 30px;padding-left: 1%;
        }
        .file {
            position: relative;display: inline-block;background: #D0EEFF;border: 1px solid #99D3F5;border-radius: 4px;padding: 4px 12px;overflow: hidden;color: #1E88C7;text-decoration: none;text-indent: 0;line-height: 20px;
        }
        .file input {
            position: absolute;font-size: 100px;right: 0;top: 0;opacity: 0;
        }
        .file:hover {
            background: #AADFFD;border-color: #78C3F3;color: #004974;text-decoration: none;
        }
        #loading { background: #fff url(../../static/public_file/images/jiazai.gif) no-repeat scroll center center; height: 100%; width: 100%; background-size: 10%; position: fixed; margin-top: 0px; top: 0px; left: 0px; bottom: 0px; overflow: hidden !important; right: 0px; z-index: 999999;background-color: rgba(255, 255, 255, 0.08);}
    </style>
</head>
<body>
    <div id="loading">
        <div id="loading-center">
        </div>
    </div>

    <div style="width: 100%;height: 40px;background: white;border-bottom: #cfcfcf solid 0.5px;line-height: 40px;color: black;">
        <div id="DW_tag" class="tab_top top_tag" onclick="change_mind('DW')">
            申请详情
        </div>
        <div id="LH_tag" class="tab_top" onclick="change_mind('LH')">
            附件
        </div>
        <div id="lct_tag" class="tab_top" onclick="change_mind('lct')">
            流程图
        </div>
        <button onclick="ExportCar()" style="float: right;width: 100px;height: 30px;line-height: 30px;margin-top: 5px;border-radius: 3px;border: #1E90FF solid 0.5px;background-color: #1E90FF;color: white;cursor: pointer;margin-right: 15px;">提交</button>

        <div style="width: 110px;float: right;text-align: center;height: 40px;">
            <button style="line-height: 27px;border-radius: 3px;border: #1E90FF solid 0.5px;width: 100px;height: 30px;margin-top: 5px;background: #1E90FF;color: white;"><a href="javascript:history.go(-1)" style="color: white;">返回</a></button>
        </div>
    </div>

    <div id="DW" style="width: 100%;height: 95%;background: white;overflow: auto;">
        <div id="menu_from" style="width: 100%;height: 100%;color: #2C3E50;display: inline-block;vertical-align: top;background: white;">
            <div style="width: 80%;height: auto;display: inline-block;vertical-align: center;margin-left: 10%;">
                <div style="width: 100%;">
                    <table style="width: 90%;margin-left: 5%;margin-top: 20px;table-layout:fixed;">
                        <tr style="width: 100%;">
                            <td colspan="6" style="width: 100%;height: 40px;line-height: 40px;text-align: center;border: #CCCCCC solid 1px;"><h3 id="h_title">付款流程申请</h3></td>
                        </tr>
                        {% if obj.received_foreign %}
                            <tr style="width: 100%;margin-top: 20px;">
                                <td colspan="6" style="width: 100%;height: 40px;line-height: 40px;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;border: #cccccc solid 1px;padding-right: 1%;">
                                    上级来文详情
                                </td>
                            </tr>
                            <tr style="width: 100%;">
                                <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    接收科室
                                </td>
                                <td style="width: 25%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;">{{ obj.received_foreign.apply_user.company.name }}</td>
                                <td style="width: 13%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    接收人
                                </td>
                                <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;">{{ obj.received_foreign.apply_user.real_name }}</td>
                                <td style="width: 12%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    收文编号
                                </td>
                                <td style="width: 20%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;outline: none;border-top: none;">{{ obj.received_foreign.recive_number }}</td>
                            </tr>
                            <tr style="width: 100%;">
                                <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    来文单位
                                </td>
                                <td colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ obj.received_foreign.send_company }}</td>
                            </tr>
                            <tr style="width: 100%;">
                                <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    来文字号
                                </td>
                                <td colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ obj.received_foreign.send_number }}</td>
                            </tr>
                            <tr style="width: 100%;">
                                <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    收文日期
                                </td>
                                <td colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">
                                    {{ obj.received_foreign.recive_time | date:"Y-m-d H:i" }}
                                </td>
                            </tr>
                            <tr style="width: 100%;">
                                <td style="width: 15%;height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    标&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;题
                                </td>
                                <td colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ obj.received_foreign.title }}</td>
                            </tr>
                            <tr style="width: 100%;">
                                <td style="width: 15%;height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    内&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;容
                                </td>
                                <td colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ obj.received_foreign.content }}</td>
                            </tr>
                            <tr style="width: 100%;">
                                <td style="width: 15%;height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    标注文本
                                </td>
                                <td colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ obj.received_foreign.annotated_text }}</td>
                            </tr>
                            <tr style="width: 100%;">
                                <td style="width: 15%;height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    时间期限
                                </td>
                                <td colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ obj.received_foreign.time_limit }}</td>
                            </tr>
                            <tr style="width: 100%;">
                                <td style="width: 15%;height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注
                                </td>
                                <td colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ obj.received_foreign.remarks }}</td>
                            </tr>
                        {% endif %}
                        <tr style="width: 100%;">
                            <td colspan="6" style="width: 90%;height: 40px;line-height: 40px;margin-left: 5%;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;border: #cccccc solid 1px;padding-right: 1%;">议题申请详情</td>
                        </tr>
                        <tr style="width: 100%;">
                            <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                提&nbsp;&nbsp;交&nbsp;&nbsp;人
                            </td>
                            <td id="tjr" style="width: 25%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: left;padding-left: 1%;border-top: none;">{{ obj.employee.real_name }}</td>
                            <td style="width: 10%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                提交科室
                            </td>
                            <td id="tjks" style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: left;padding-left: 1%;border-top: none;">{{ obj.company.name }}</td>
                            <td style="width: 10%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                议题编号
                            </td>
                            <td id="bh" style="width: 25%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: left;padding-left: 1%;border-top: none;">{{ obj.number }}</td>
                        </tr>
                        {% if obj.topic_type %}
                            {% if obj.topic_type == "1" %}
                                <tr style="width: 100%;">
                                    <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 2px;">议题类型</td>
                                    <td id="" style="width: 25%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: left;padding-left: 1%;border-top: none;">
                                        {% if obj.topic_type == "1" %}
                                            付款类
                                        {% elif obj.topic_type == "2" %}
                                            经济合同类
                                        {% elif obj.topic_type == "3" %}
                                            项目类
                                        {% elif obj.topic_type == "4" %}
                                            文件类
                                        {% elif obj.topic_type == "5" %}
                                            方案类
                                        {% elif obj.topic_type == "7" %}
                                            招标采购类
                                        {% else %}
                                            其他事项
                                        {% endif %}
                                    </td>
                                    <td style="width: 10%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">付款类型</td>
                                    <td id="pay_type_select" style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: left;padding-left: 1%;border-top: none;">
                                        {% if obj.pay_type == "1" %}
                                            合同付款
                                        {% elif obj.pay_type == "2" %}
                                            固定资产/维修维保付款
                                        {% elif obj.pay_type == "3" %}
                                            材料付款
                                        {% elif obj.pay_type == "4" %}
                                            餐补付款
                                        {% elif obj.pay_type == "5" %}
                                            学科经费
                                        {% elif obj.pay_type == "6" %}
                                            科研经费
                                        {% elif obj.pay_type == "7" %}
                                            一般付款
                                        {% else %}
                                            工会经费
                                        {% endif %}
                                    </td>
                                    <td style="width: 10%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">是否转党委会</td>
                                    <td id="bh" style="width: 25%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: left;padding-left: 1%;border-top: none;">
                                        {% if obj.whether_outweigh == "1" %}
                                            是
                                        {% else %}
                                            否
                                        {% endif %}
                                    </td>
                                </tr>
                                <tr style="width: 100%;">
                                    <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">收款单位</td>
                                    <td id="Payee" style="width: 25%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ obj.Payee }}</td>
                                    <td style="width: 13%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">收款账号</td>
                                    <td id="receiving_account" style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ obj.receiving_account }}</td>
                                    <td style="width: 12%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;">开户行</td>
                                    <td id="opening_bank" style="width: 20%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;outline: none;">{{ obj.opening_bank }}</td>
                                </tr>
                                <tr id="payment_capitalization" style="width: 100%;">
                                    <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;">申请金额</td>
                                    <td id="application_amount" style="width: 25%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;outline: none;" >{{ obj.application_amount }}</td>
                                    <td style="width: 13%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;">金额大写</td>
                                    <td id="amount_words" style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;">{{ obj.amount_words }}</td>
                                    <td style="width: 12%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;">经费来源</td>
                                    <td style="width: 20%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;">
                                        {% if obj.funding_source == "1" %}
                                            自有经费
                                        {% elif obj.funding_source == "2" %}
                                            学科经费
                                        {% elif obj.funding_source == "3" %}
                                            科研经费
                                        {% elif obj.funding_source == "4" %}
                                            财政拨款
                                        {% elif obj.funding_source == "5" %}
                                            贴息贷款
                                        {% elif obj.funding_source == "6" %}
                                            专项债券
                                        {% elif obj.funding_source == "7" %}
                                            工会经费
                                        {% else %}

                                        {% endif %}
                                    </td>
                                </tr>
                            {% endif %}
                        {% else %}
                        {% endif %}

                        <tr id="xb_ks" style="width: 100%;{% if obj.type == 'xz' %} display: none; {% endif %}">
                            <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 2px;">
                                协办科室
                            </td>
                            <td id="xieban" colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;">{{ help_department }}</td>
                        </tr>
                        <tr style="width: 100%;">
                            <td style="width: 15%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 2px;">
                                议题名称
                            </td>
                            <td id="ytmc" colspan="3" style="width: 50%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ topics_name }}</td>
                            <td style="width: 10%;height: 40px;line-height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                预估用时(分钟)
                            </td>
                            <td id="ygys" style="width: 25%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ topics_estimate }}</td>
                        </tr>
                        {% if yb_number %}
                            <tr style="width: 100%;">
                                <td style="width: 15%;height: 40px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 2px;">
                                    院长办公会<br>议&nbsp;题&nbsp;编&nbsp;号
                                </td>
                                <td id="yb_number" colspan="5" style="width: 85%;height: 40px;line-height: 40px;border: #cccccc solid 1px;border-left: none;padding-left: 1%;border-top: none;outline: none;">{{ yb_number }}</td>
                            </tr>
                        {% endif %}
                        {% if 'PG' in audit_list and obj.state != 'PG' and db_topics_text or db_topics_basis or db_solution %}
                            <tr style="width: 100%;">
                                <td colspan="6" style="width: 90%;height: 40px;line-height: 40px;margin-left: 5%;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;border: #cccccc solid 1px;padding-right: 1%;">院长办公会议题内容</td>
                            </tr>
                        {% endif %}

                        <tr style="width: 100%;">
                            <td style="width: 15%;height: 100px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 2px;">
                                议题简述
                            </td>
                            <td id="ytnr" colspan="5" style="width: 85%;height: 100px;border: #cccccc solid 1px;border-left: none;border-top: none;padding-left: 1%;">
                                {% autoescape off %}
                                    {{ topics_text }}
                                {% endautoescape %}</td>
                        </tr>
                        <tr id="yt_yj" style="width: 100%;{% if obj.type == 'xz' %} display: none; {% endif %}">
                            <td style="width: 15%;height: 100px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 2px;">
                                政策依据<br>或调研论<p style="letter-spacing: 1px;">证&nbsp;&nbsp;情&nbsp;&nbsp;况</p>
                            </td>
                            <td id="ytyj" colspan="5" style="width: 85%;height: 100px;border: #cccccc solid 1px;border-left: none;border-top: none;padding-left: 1%;">
                                {% autoescape off %}
                                    {{ topics_basis }}
                                {% endautoescape %}
                            </td>
                        </tr>
                        <tr id="jj_fa" style="width: 100%;{% if obj.type == 'xz' %} display: none; {% endif %}">
                            <td style="width: 15%;height: 100px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                拟供选择
                                <p style="letter-spacing: 3px;">方&nbsp;&nbsp;&nbsp;&nbsp;案</p>
                            </td>
                            <td id="jjfa" colspan="5" style="width: 85%;height: 100px;border: #cccccc solid 1px;border-left: none;border-top: none;padding-left: 1%;">
                                {% autoescape off %}
                                    {{ solution }}
                                {% endautoescape %}</td>
                        </tr>
                    </table>

                    {% if is_edit == 'true' or flow_obj.state == "zero" %}
                        <table id="party_main" style="width: 90%;margin-left: 5%;">
                            <tr>
                                <td colspan="6" style="width: 90%;height: 40px;line-height: 40px;margin-left: 5%;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;border: #cccccc solid 1px;padding-right: 1%;">
                                    上传附件
                                    <a href="javascript:;" class="file" style="vertical-align: top;margin-top: 5px;float: right;">
                                        上传文件
                                        <input type="file" name="party_main_body" id="party_main_body" onchange="upload_accessory('file1', 'party_main', 'party_main_body')">
                                    </a>
                                </td>
                            </tr>

                            <tr>
                                <td style="width: 5%;border: #cccccc solid 1px;text-align: center;">序号</td>
                                <td style="width: 20%;border: #cccccc solid 1px;border-left: none;text-align: center;">
                                    文件名称
                                </td>
                                <td style="width: 20%;border: #cccccc solid 1px;border-left: none;text-align: center;">
                                    文件大小
                                </td>
                                <td style="width: 20%;border: #cccccc solid 1px;border-left: none;text-align: center;">
                                    上传时间
                                </td>
                                <td style="width: 20%;border: #cccccc solid 1px;border-left: none;text-align: center;">
                                    上传人员
                                </td>
                                <td style="width: 15%;border: #cccccc solid 1px;border-left: none;text-align: center;">
                                    操作
                                </td>
                            </tr>
                            {% for record in flow_file_list %}
                                <tr>
                                    <td style="width: 5%;border: #cccccc solid 1px;text-align: center;">{{ forloop.counter }}</td>
                                    <td style="width: 20%;border: #cccccc solid 1px;border-left: none;text-align: center;">{{ record.file_name }}</td>
                                    <td style="width: 20%;border: #cccccc solid 1px;border-left: none;text-align: center;">{{ record.file_size }}</td>
                                    <td style="width: 20%;border: #cccccc solid 1px;border-left: none;text-align: center;">{{ record.upload_time }}</td>
                                    <td style="width: 20%;border: #cccccc solid 1px;border-left: none;text-align: center;">{{ record.uploader }}</td>
                                    <td style="width: 15%;border: #cccccc solid 1px;border-left: none;text-align: center;"><a target='_blank' href="{{ record.file_path }}">查看</a> | <a style="color: red;" href='#' onclick='RemoveTr(this, "party_main", {{ record.id }})' >删除</a></td>
                                </tr>
                            {% endfor %}
                        </table>
                    {% endif %}

                    <table style="width: 90%;margin-left: 5%;">
                        {% if 'PG' in audit_list and obj.state != 'PG' or obj.HouseToParty_id %}
                            <tr>
                                <td colspan="6" style="width: 90%;height: 40px;line-height: 40px;margin-left: 5%;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;border: #cccccc solid 1px;padding-right: 1%;">
                                    院长办公会审批详情
                                </td>
                            </tr>
                        {% else %}
                            <tr>
                                <td colspan="6" style="width: 90%;height: 40px;line-height: 40px;margin-left: 5%;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;border: #cccccc solid 1px;padding-right: 1%;">
                                    议题审批详情
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'B' in audit_list %}
                            <tr style="width: 100%;" >
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;管&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;领&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;导
                                </td>
                                <td id="" colspan="5"
                                    style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                    {% for k,v in audit_list.items %}
                                        {% if k == 'B' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        <span>{{ item.state_display }}</span>
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt=""
                                                             style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'OPR' in audit_list %}
                            <tr style="width: 100%;" >
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    医&nbsp;院&nbsp;办&nbsp;公&nbsp;室&nbsp;初&nbsp;审
                                </td>
                                <td id="" colspan="5"
                                    style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                    {% for k,v in audit_list.items %}
                                        {% if k == 'OPR' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        {% if item.state_display == '同意' %}
                                                            已审核
                                                        {% else %}
                                                            <span>{{ item.state_display }}</span>
                                                        {% endif %}
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt=""
                                                             style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if obj.type == 'xz' %}
                            {% if 'YZ/SJ' in audit_list %}
                                <tr style="width: 100%;" >
                                    <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                        {% if obj.type == 'db' %}
                                            {% if obj.is_yb %}
                                                院&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;长&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;意&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;见
                                            {% else %}
                                                书&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;记&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;意&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;见
                                            {% endif %}
                                        {% else %}
                                            院&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;长&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;意&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;见
                                        {% endif %}
                                    </td>
                                    <td id="" colspan="5"
                                        style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                        {% for k,v in audit_list.items %}
                                            {% if k == 'YZ/SJ' %}
                                                {% for item in v %}
                                                    {% if item.state != 'unaudit' %}
                                                        <div style="width: 100%;line-height: 20px;position: relative;">
                                                            <span>{{ item.state_display }}</span>
                                                            <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                        </div>
                                                        <div>
                                                            {% if item.signature_picture %}
                                                                <img src="{{ item.signature_picture }}" alt=""
                                                                 style="width: 150px; height: 60px;">
                                                            {% else %}
                                                                {{ item.audit_user }}
                                                            {% endif %}
                                                        </div>
                                                        <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                    {% endif %}
                                                {% endfor %}
                                            {% endif %}
                                        {% endfor %}
                                    </td>
                                </tr>
                            {% endif %}

                            {% if 'YB/DB' in audit_list %}
                                <tr style="width: 100%;" >
                                    <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                        医&nbsp;&nbsp;&nbsp;院&nbsp;&nbsp;&nbsp;办&nbsp;&nbsp;&nbsp;公&nbsp;&nbsp;&nbsp;室
                                    </td>
                                    <td id="" colspan="5"
                                        style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                        {% for k,v in audit_list.items %}
                                            {% if k == 'YB/DB' %}
                                                {% for item in v %}
                                                    {% if item.state != 'unaudit' %}
                                                        <div style="width: 100%;line-height: 20px;position: relative;">
                                                            {% if item.state_display == '同意' %}
                                                                已审核
                                                            {% else %}
                                                                <span>{{ item.state_display }}</span>
                                                            {% endif %}
                                                            <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                        </div>
                                                        <div>
                                                            {% if item.signature_picture %}
                                                                <img src="{{ item.signature_picture }}" alt=""
                                                                 style="width: 150px; height: 60px;">
                                                            {% else %}
                                                                {{ item.audit_user }}
                                                            {% endif %}
                                                        </div>
                                                        <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                    {% endif %}
                                                {% endfor %}
                                            {% endif %}
                                        {% endfor %}
                                    </td>
                                </tr>
                            {% endif %}
                        {% else %}
                            {% if 'YB/DB' in audit_list %}
                                <tr style="width: 100%;" >
                                    <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                        {% if 'yb_result' in data_dic.audit_list or obj.type == 'yb' %}
                                            医&nbsp;院&nbsp;办&nbsp;公&nbsp;室&nbsp;核&nbsp;稿
                                        {% else %}
                                            党&nbsp;&nbsp;&nbsp;委&nbsp;&nbsp;&nbsp;办&nbsp;&nbsp;&nbsp;公&nbsp;&nbsp;&nbsp;室
                                        {% endif %}
                                    </td>
                                    <td id="" colspan="5"
                                        style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                        {% for k,v in audit_list.items %}
                                            {% if k == 'YB/DB' %}
                                                {% for item in v %}
                                                    {% if item.state != 'unaudit' %}
                                                        <div style="width: 100%;line-height: 20px;position: relative;">
                                                            {% if item.state_display == '同意' %}
                                                                已审核
                                                            {% else %}
                                                                <span>{{ item.state_display }}</span>
                                                            {% endif %}
                                                            <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                        </div>
                                                        <div>
                                                            {% if item.signature_picture %}
                                                                <img src="{{ item.signature_picture }}" alt=""
                                                                 style="width: 150px; height: 60px;">
                                                            {% else %}
                                                                {{ item.audit_user }}
                                                            {% endif %}
                                                        </div>
                                                        <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                    {% endif %}
                                                {% endfor %}
                                            {% endif %}
                                        {% endfor %}
                                    </td>
                                </tr>
                            {% endif %}

                            {% if 'Y_D_leader' in audit_list %}
                                <tr style="width: 100%;" >
                                    <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                        党委办公室分管领导
                                    </td>
                                    <td id="" colspan="5"
                                        style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                        {% for k,v in audit_list.items %}
                                            {% if k == 'Y_D_leader' %}
                                                {% for item in v %}
                                                    {% if item.state != 'unaudit' %}
                                                        <div style="width: 100%;line-height: 20px;position: relative;">
                                                            <span>{{ item.state_display }}</span>
                                                            <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                        </div>
                                                        <div>
                                                            {% if item.signature_picture %}
                                                                <img src="{{ item.signature_picture }}" alt=""
                                                                 style="width: 150px; height: 60px;">
                                                            {% else %}
                                                                {{ item.audit_user }}
                                                            {% endif %}
                                                        </div>
                                                        <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                    {% endif %}
                                                {% endfor %}
                                            {% endif %}
                                        {% endfor %}
                                    </td>
                                </tr>
                            {% endif %}

                            {% if 'YZ/SJ' in audit_list %}
                                <tr style="width: 100%;" >
                                    <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                        {% if obj.type == 'db' %}
                                            {% if obj.is_yb %}
                                                院&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;长&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;意&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;见
                                            {% else %}
                                                书&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;记&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;意&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;见
                                            {% endif %}
                                        {% else %}
                                            院&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;长&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;意&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;见
                                        {% endif %}
                                    </td>
                                    <td id="" colspan="5"
                                        style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                        {% for k,v in audit_list.items %}
                                            {% if k == 'YZ/SJ' %}
                                                {% for item in v %}
                                                    {% if item.state != 'unaudit' %}
                                                        <div style="width: 100%;line-height: 20px;position: relative;">
                                                            <span>{{ item.state_display }}</span>
                                                            <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                        </div>
                                                        <div>
                                                            {% if item.signature_picture %}
                                                                <img src="{{ item.signature_picture }}" alt=""
                                                                 style="width: 150px; height: 60px;">
                                                            {% else %}
                                                                {{ item.audit_user }}
                                                            {% endif %}
                                                        </div>
                                                        <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                    {% endif %}
                                                {% endfor %}
                                            {% endif %}
                                        {% endfor %}
                                    </td>
                                </tr>
                            {% endif %}
                        {% endif %}

                        {% if 'yb_result' in audit_list %}
                            <tr style="width: 100%;" >
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    院长办公会会议结果
                                </td>
                                <td id="" colspan="5"
                                    style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                    {% for k,v in audit_list.items %}
                                        {% if k == 'yb_result' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt=""
                                                             style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'marks' in audit_list %}
                            <tr style="width: 100%;" >
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    议&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;题&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注
                                </td>
                                <td id="" colspan="5"
                                    style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                    {% for k,v in audit_list.items %}
                                        {% if k == 'marks' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        <span>{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt=""
                                                             style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'transfer' in audit_list %}
                            <tr style="width: 100%;" >
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    提&nbsp;&nbsp;&nbsp;交&nbsp;&nbsp;&nbsp;党&nbsp;&nbsp;&nbsp;委&nbsp;&nbsp;&nbsp;会
                                </td>
                                <td id="" colspan="5"
                                    style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                    {% for k,v in audit_list.items %}
                                        {% if k == 'transfer' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt=""
                                                             style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'db_leader' in audit_list %}
                            <tr style="width: 100%;" >
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;管&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;领&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;导
                                </td>
                                <td id="" colspan="5"
                                    style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                    {% for k,v in audit_list.items %}
                                        {% if k == 'db_leader' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        <span>{{ item.state_display }}</span>
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt=""
                                                             style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'PG' in audit_list %}
                            <tr style="width: 100%;" >
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    党&nbsp;&nbsp;&nbsp;委&nbsp;&nbsp;&nbsp;办&nbsp;&nbsp;&nbsp;公&nbsp;&nbsp;&nbsp;室
                                </td>
                                <td id="" colspan="5"
                                    style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                    {% for k,v in audit_list.items %}
                                        {% if k == 'PG' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        {% if item.state_display == '同意' %}
                                                            已审核
                                                        {% else %}
                                                            <span>{{ item.state_display }}</span>
                                                        {% endif %}
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt=""
                                                             style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'PG' in audit_list and obj.state != 'PG' and db_topics_text or db_topics_basis or db_solution %}
                            <tr style="width: 100%;">
                                <td colspan="6" style="width: 90%;height: 40px;line-height: 40px;margin-left: 5%;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;border: #cccccc solid 1px;padding-right: 1%;">党委会议题内容</td>
                            </tr>

                            <tr style="width: 100%;">
                                <td style="width: 15%;height: 100px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 2px;">
                                    议题简述
                                </td>
                                <td id="dw_ytnr" colspan="5" style="width: 85%;height: 100px;border: #cccccc solid 1px;border-left: none;border-top: none;padding-left: 1%;">
                                    {% autoescape off %}
                                        {{ db_topics_text }}
                                    {% endautoescape %}
                                </td>
                            </tr>
                            <tr id="yt_yj" style="width: 100%;{% if obj.type == 'xz' %} display: none; {% endif %}">
                                <td style="width: 15%;height: 100px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 2px;">
                                    政策依据或调研论证情况
                                </td>
                                <td id="dw_ytyj" colspan="5" style="width: 85%;height: 100px;border: #cccccc solid 1px;border-left: none;border-top: none;padding-left: 1%;">
                                    {% autoescape off %}
                                        {{ db_topics_basis }}
                                    {% endautoescape %}
                                </td>
                            </tr>
                            <tr id="jj_fa" style="width: 100%;{% if obj.type == 'xz' %} display: none; {% endif %}">
                                <td style="width: 15%;height: 100px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    拟供选择方案
                                </td>
                                <td id="dw_jjfa" colspan="5" style="width: 85%;height: 100px;border: #cccccc solid 1px;border-left: none;border-top: none;padding-left: 1%;">
                                    {% autoescape off %}
                                        {{ db_solution }}
                                    {% endautoescape %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'PG' in audit_list and obj.state != 'PG' or obj.HouseToParty_id %}
                            <tr>
                                <td colspan="6" style="width: 90%;height: 40px;line-height: 40px;margin-left: 5%;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;border: #cccccc solid 1px;padding-right: 1%;">
                                    党委会审批详情
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'db_one_step' in audit_list %}
                            <tr style="width: 100%;" >
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;管&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;领&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;导
                                </td>
                                <td id="" colspan="5"
                                    style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                    {% for k,v in audit_list.items %}
                                        {% if k == 'db_one_step' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        <span>{{ item.state_display }}</span>
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt=""
                                                             style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'db_two_step' in audit_list %}
                            <tr style="width: 100%;" >
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    党&nbsp;&nbsp;&nbsp;委&nbsp;&nbsp;&nbsp;办&nbsp;&nbsp;&nbsp;公&nbsp;&nbsp;&nbsp;室
                                </td>
                                <td id="" colspan="5"
                                    style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                    {% for k,v in audit_list.items %}
                                        {% if k == 'db_two_step' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        {% if item.state_display == '同意' %}
                                                            已审核
                                                        {% else %}
                                                            <span>{{ item.state_display }}</span>
                                                        {% endif %}
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt=""
                                                             style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'db_three_step' in audit_list %}
                            <tr style="width: 100%;" >
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    党委办公室分管领导
                                </td>
                                <td id="" colspan="5"
                                    style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                    {% for k,v in audit_list.items %}
                                        {% if k == 'db_three_step' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        <span>{{ item.state_display }}</span>
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt=""
                                                             style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'sj' in audit_list %}
                            <tr style="width: 100%;" >
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    书&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;记&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;意&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;见
                                </td>
                                <td id="" colspan="5"
                                    style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                    {% for k,v in audit_list.items %}
                                        {% if k == 'sj' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        <span>{{ item.state_display }}</span>
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt=""
                                                             style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'db_result' in audit_list %}
                            <tr style="width: 100%;" >
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    党&nbsp;委&nbsp;会&nbsp;会&nbsp;议&nbsp;结&nbsp;果
                                </td>
                                <td id="" colspan="5"
                                    style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                    {% for k,v in audit_list.items %}
                                        {% if k == 'db_result' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt=""
                                                             style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'xz_result' in audit_list %}
                            <tr style="width: 100%;" >
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    行政例会会议结果
                                </td>
                                <td id="" colspan="5"
                                    style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                    {% for k,v in audit_list.items %}
                                        {% if k == 'xz_result' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt=""
                                                             style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        <tr>
                            <td colspan="6" style="width: 90%;height: 40px;margin-left: 5%;line-height: 40px;background-color: #F5F5F5;color: #1E90FF;padding-left: 1%;border: #cccccc solid 0.5px;padding-right: 1%;">
                                付款审批详情
                            </td>
                        </tr>
                        {% if 'one' in topic_audit_dic %}
                            <tr style="width: 100%;">
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    科室负责人
                                </td>
                                <td colspan="5" style="width: 85%;height: 150px;border: #cccccc solid 1px;border-left: none;border-top: none;">
                                    {% for k,v in topic_audit_dic.items %}
                                        {% if k == 'one' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div id="fzrcs_op"
                                                         style="width: 100%;line-height: 20px;position: relative;">
                                                        <!--                                            {{ item.audit_user }}-->
                                                        <span>{{ item.state_display }}</span>
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt="" style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'two' in topic_audit_dic %}
                            <tr style="width: 100%;">
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 4.5px;">
                                    分管领导
                                </td>
                                <td  colspan="5" style="width: 85%;height: 150px;border: #cccccc solid 1px;border-left: none;border-top: none;">
                                    {% for k,v in topic_audit_dic.items %}
                                        {% if k == 'two' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        <span>{{ item.state_display }}</span>
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt="" style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'three' in topic_audit_dic %}
                            <tr style="width: 100%;">
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;">
                                    财&nbsp;&nbsp;&nbsp;务&nbsp;&nbsp;&nbsp;科
                                </td>
                                <td colspan="5" style="width: 85%;height: 150px;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                    {% for k,v in topic_audit_dic.items %}
                                        {% if k == 'three' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        <span>{{ item.state_display }}</span>
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt="" style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'four' in topic_audit_dic %}
                            <tr style="width: 100%;">
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 4.5px;">
                                    总会计师
                                </td>
                                <td colspan="5" style="width: 85%;height: 150px;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                    {% for k,v in topic_audit_dic.items %}
                                        {% if k == 'four' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        <span>{{ item.state_display }}</span>
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt="" style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'five' in topic_audit_dic %}
                            <tr style="width: 100%;" >
                                <td style="width: 15%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 4.5px;">
                                    财务支付
                                </td>
                                <td colspan="5" style="width: 85%;height: auto;border: #cccccc solid 1px;border-left: none;border-top: none;outline: none;">
                                    {% for k,v in topic_audit_dic.items %}
                                        {% if k == 'five' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        <span>{{ item.state_display }}</span>
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt="" style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}
                    </table>
                </div>
            </div>
        </div>
    </div>

    <div id="LH" style="width: 100%;height: 94%;background: white;display: none;">
        <div style="display: inline-block;width: 20%;vertical-align: top;height: 99%">
            <div style="width: 100%;height: 40px;background: #c8cbcf;padding-left: 2%;line-height: 40px;color: #0c6fd9;">
                附件
            </div>
            <div id="yt_zhengwen" style="width: 100%;">
                {% for item in main_file_list %}
                    <div><a href="#" class="a_tag_cla" onclick="chage_yulan(this, '{{ item.file_path }}')">{{ item.file_name }}</a></div>
                {% endfor %}
            </div>

        </div>
        <div style="display: inline-block;width: 78%;vertical-align: top;height: 99%;text-align: center;" id="fujian">
            {% if 'jpg' in file_path or 'JPG' in file_path or 'JPEG' in file_path or 'jpeg' in file_path or 'PNG' in file_path or 'png' in file_path %}
                <img src="{{ file_path }}" alt="" style="width: 800px;height: 100%;">
            {% else %}
                <embed id="embed_file" src="{{ file_path }}" type="application/pdf" style="width: 100%;height: 100%;">
            {% endif %}
        </div>
    </div>

    <div id="lct" style="width: 100%;height: 94%;background: white;display: none;">
        <div style="width: 100%;height: 40%;text-align: center;margin: 20% auto;">
            <div style="display: inline-block;vertical-align: top;cursor: pointer;text-align: center;">
                <div style="text-align: center;color: #0d8ddb;">
                    ({{ obj.employee.real_name }})<br>
                    发起人
                </div>
                <div style="width: 50px;height: 25px;border-radius: 3px;background: #0d8ddb;color: white;text-align: center;display: inline-block;font-size: 12px;line-height: 25px;">
                    start
                </div>
            </div>

            {% if 'one' in topic_flow_dict %}
                {% for k,v in topic_flow_dict.items %}
                    {% if k == 'one' %}
                        <div style="display: inline-block;border: {% if v.apply == 'true' %} #0d8ddb {% else %} #cfcfcf {% endif %} solid 1px;width: 120px;vertical-align: bottom;margin-bottom: 12px;"></div>
                        <div style="display: inline-block;vertical-align: top;cursor: pointer;text-align: center;">
                            <div style="text-align: center;{% if v.apply == 'true' %} color: #0d8ddb; {% endif %}">
                                ({{ v.apply_people }})<br>
                                科室负责人
                            </div>
                            <div style="width: 25px;height: 25px;border-radius: 50%;{% if v.apply == 'true' %} background: #0d8ddb; {% else %} background: #cfcfcf; {% endif %}color: white;text-align: center;display: inline-block;font-size: 12px;line-height: 25px;">
                                {{ v.sear }}
                            </div>
                        </div>
                    {% endif %}
                {% endfor %}
            {% endif %}

            {% if 'two' in topic_flow_dict %}
                {% for k,v in topic_flow_dict.items %}
                    {% if k == 'two' %}
                        <div style="display: inline-block;border: {% if v.apply == 'true' %} #0d8ddb {% else %} #cfcfcf {% endif %} solid 1px;width: 120px;vertical-align: bottom;margin-bottom: 12px;"></div>
                        <div style="display: inline-block;vertical-align: top;cursor: pointer;text-align: center;">
                            <div style="text-align: center;{% if v.apply == 'true' %} color: #0d8ddb; {% endif %}">
                                ({{ v.apply_people }})<br>
                                分管领导
                            </div>
                            <div style="width: 25px;height: 25px;border-radius: 50%;{% if v.apply == 'true' %} background: #0d8ddb; {% else %} background: #cfcfcf; {% endif %}color: white;text-align: center;display: inline-block;font-size: 12px;line-height: 25px;">
                                {{ v.sear }}
                            </div>
                        </div>
                    {% endif %}
                {% endfor %}
            {% endif %}

            {% if 'three' in topic_flow_dict %}
                {% for k,v in topic_flow_dict.items %}
                    {% if k == 'three' %}
                        <div style="display: inline-block;border: {% if v.apply == 'true' %} #0d8ddb {% else %} #cfcfcf {% endif %} solid 1px;width: 120px;vertical-align: bottom;margin-bottom: 12px;"></div>
                        <div style="display: inline-block;vertical-align: top;cursor: pointer;text-align: center;">
                            <div style="text-align: center;{% if v.apply == 'true' %} color: #0d8ddb; {% endif %}">
                                ({{ v.apply_people }})<br>
                                财务科长
                            </div>
                            <div style="width: 25px;height: 25px;border-radius: 50%;{% if v.apply == 'true' %} background: #0d8ddb; {% else %} background: #cfcfcf; {% endif %}color: white;text-align: center;display: inline-block;font-size: 12px;line-height: 25px;">
                                {{ v.sear }}
                            </div>
                        </div>
                    {% endif %}
                {% endfor %}
            {% endif %}

            {% if 'four' in topic_flow_dict %}
                {% for k,v in topic_flow_dict.items %}
                    {% if k == 'four' %}
                        <div style="display: inline-block;border: {% if v.apply == 'true' %} #0d8ddb {% else %} #cfcfcf {% endif %} solid 1px;width: 120px;vertical-align: bottom;margin-bottom: 12px;"></div>
                        <div style="display: inline-block;vertical-align: top;cursor: pointer;text-align: center;">
                            <div style="text-align: center;{% if v.apply == 'true' %} color: #0d8ddb; {% endif %}">
                                ({{ v.apply_people }})<br>
                                总会计师
                            </div>
                            <div style="width: 25px;height: 25px;border-radius: 50%;{% if v.apply == 'true' %} background: #0d8ddb; {% else %} background: #cfcfcf; {% endif %}color: white;text-align: center;display: inline-block;font-size: 12px;line-height: 25px;">
                                {{ v.sear }}
                            </div>
                        </div>
                    {% endif %}
                {% endfor %}
            {% endif %}

            {% if 'five' in topic_flow_dict %}
                {% for k,v in topic_flow_dict.items %}
                    {% if k == 'five' %}
                        <div style="display: inline-block;border: {% if v.apply == 'true' %} #0d8ddb {% else %} #cfcfcf {% endif %} solid 1px;width: 120px;vertical-align: bottom;margin-bottom: 12px;"></div>
                        <div style="display: inline-block;vertical-align: top;cursor: pointer;text-align: center;">
                            <div style="text-align: center;{% if v.apply == 'true' %} color: #0d8ddb; {% endif %}">
                                ({{ v.apply_people }})<br>
                                财务支付
                            </div>
                            <div style="width: 25px;height: 25px;border-radius: 50%;{% if v.apply == 'true' %} background: #0d8ddb; {% else %} background: #cfcfcf; {% endif %}color: white;text-align: center;display: inline-block;font-size: 12px;line-height: 25px;">
                                {{ v.sear }}
                            </div>
                        </div>
                    {% endif %}
                {% endfor %}
            {% endif %}

            <div style="display: inline-block;border: #0d8ddb solid 1px;width: 120px;vertical-align: bottom;margin-bottom: 12px;"></div>
            <div style="display: inline-block;vertical-align: top;cursor: pointer;text-align: center;">
                <div style="text-align: center;color: #0d8ddb;">
                    <span style="visibility: hidden;">({{ obj.apply_user.real_name }})</span><br>
                    结束
                </div>
                <div style="width: 50px;height: 25px;border-radius: 3px;background: #0d8ddb;color: white;text-align: center;display: inline-block;font-size: 12px;line-height: 25px;">
                    ending
                </div>
            </div>
        </div>
    </div>

    <script src="../../static/system_setup/creat_from/js/jquery-1.10.2.js"></script>
    <script>
        window.onload = function () {
            document.getElementById("loading").style.display = "none";
        };

        function chage_yulan(this_, file_path) {
            var fujian = document.getElementById("fujian");
            var file_index = file_path.lastIndexOf(".")
            var ext = file_path.substring(file_index+1)
            var arr=['jpg', 'JPG', "JPEG", "jpeg", "PNG", "png"];
            var ext_index=arr.indexOf(ext);
            if (ext_index === -1){
                fujian.innerHTML = '<embed id="embed_file" src="'+file_path+'" type="" style="width: 100%;height: 100%;">'
            }else {
                fujian.innerHTML = '<img src="' + file_path + '" alt="application/pdf" style="width: 800px;height: 100%;">'
            }

            var a_tag_list = document.getElementsByClassName("a_tag_cla");
            for (var i = 0;i<a_tag_list.length; i++){
                a_tag_list[i].style.background='';
            }
            this_.style.background='#cfcfcf';
        }

        function change_mind(ele_id) {
            if (ele_id === "DW") {
                document.getElementById("DW").style.display = "inline-block";
                document.getElementById("DW_tag").className = "tab_top top_tag";
                document.getElementById("LH_tag").className = "tab_top";
                document.getElementById("LH").style.display = "none";
                document.getElementById("lct_tag").className = "tab_top";
                document.getElementById("lct").style.display = "none";
            } else if (ele_id === "LH") {
                document.getElementById("LH").style.display = "inline-block";
                document.getElementById("LH_tag").className = "tab_top top_tag";
                document.getElementById("DW_tag").className = "tab_top";
                document.getElementById("DW").style.display = "none";
                document.getElementById("lct_tag").className = "tab_top";
                document.getElementById("lct").style.display = "none";
            }else {
                document.getElementById("lct").style.display = "inline-block";
                document.getElementById("lct_tag").className = "tab_top top_tag";
                document.getElementById("DW_tag").className = "tab_top";
                document.getElementById("DW").style.display = "none";
                document.getElementById("LH_tag").className = "tab_top";
                document.getElementById("LH").style.display = "none";
            }
        }
    </script>
</body>
</html>